"""
日志文件
"""




# class Log(object):
#     upper_path = "./日志/"
#
#     def __init__(self, day):
#         self.path = Log.upper_path + str(day)+".txt"
#         self.day = day
#
#     def write_log(self, log):
#         with open(self.path, "w+", encoding="utf-8") as f:
#             f.writelines(log)
def write_log(log):
    # 主目录
    upper_path = "./日志/"
    inner_path = upper_path + "回测日志.txt"
    with open(inner_path, "a", encoding="utf-8") as f:
        f.writelines(log)

